package com.cnhis.cloudhealth.clinical.hosnurse.hospatientcase.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;

@Repository
public class HosPatientCaseDao extends BaseDao
{
    public Page patientCaseList(Map map, int currentPage, int pageSize)
        throws Exception
    {
        return queryForPage("HosPatientCase.patientCaseList", map, currentPage, pageSize);
        
    }
    
    public Map getBCK01(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("HosPatientCase.getBCK01", map);
    }
    
    public List emrSelectUse(Map map)
        throws Exception
    {
        return queryForList("HosPatientCase.emrSelectUse", map);
    }
    
    public List getLastHistory(Map map)
        throws Exception
    {
        return queryForList("HosPatientCase.getLastHistory", map);
    }
    
    public List personalCase(Map map)
        throws Exception
    {
        return queryForList("HosPatientCase.personalCase", map);
    }
    
    public void delPatientVcf1(Map map)
        throws Exception
    {
        delete("HosPatientCase.delPatientVcf1", map);
    }

    public List queryCareCad1(Map hs) throws Exception
    {
        return queryForList("HosPatientCase.queryCareCad1", hs);
    }

    public List queryCareBck1(Map hs) throws Exception
    {
        return queryForList("HosPatientCase.queryCareBck1", hs);
    }

    public List queryCareJibie(Map hs) throws Exception
    {
        return queryForList("HosPatientCase.queryCareJibie", hs);
    }

    public List exitsCad1(Map hs) throws Exception
    {
        return queryForList("HosPatientCase.exitsCad1", hs);
    }

    public void updateCad1(Map hs) throws Exception
    {
        update("HosPatientCase.updateCad1", hs);
    }

    public void insertCad1(Map hs) throws Exception
    {
        insert("HosPatientCase.insertCad1", hs);
    }

    public void updateCbd1(Map hs) throws Exception
    {
        update("HosPatientCase.updateCbd1", hs);
    }

    public void execEMRMaster_CAZ1_Configs(Map map) throws Exception
    {
        update("HosPatientCase.execEMRMaster_CAZ1_Configs", map);
    }

    public List queryAllCaz1(Map map) throws Exception
    {
        return queryForList("HosPatientCase.queryAllCaz1", map);
    }

    public List queryCaz16(Map map) throws Exception
    {
        return queryForList("HosPatientCase.queryCaz16", map);
    }

    public List queryCareKeshi(Map map) throws Exception
    {
        return queryForList("HosPatientCase.queryCareKeshi", map);
    }

    public void execEMRMaster_CAZ1_Update(Map map) throws Exception
    {
        update("HosPatientCase.execEMRMaster_CAZ1_Update", map);
    }

    public void execEMRMaster_CAD1_Delete(Map map) throws Exception
    {
        update("HosPatientCase.execEMRMaster_CAD1_Delete", map);
    }

    public List getCareItem(HashMap map) throws Exception
    {
        return queryForList("HosPatientCase.getCareItem", map);
    }

    public List getCazBck1(HashMap map) throws Exception
    {
        return queryForList("HosPatientCase.getCazBck1", map);
    }
    
}
